#Copyright (c) 2003 - 2012 Roberto Rodriguez

#This program is free software; you can redistribute it and/or modify
#it under the terms of version 2 of the GNU General Public License
#as published by the Free Software Foundation.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License along
#with this program; if not, write to the Free Software Foundation, Inc.,
#51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

SetTitle "Configure newlib 1.15.0"
cd newlib-1.15.0/newlib/libc/sys
autoconf || exit
cd rymos
#autoreconf || exit
aclocal -I ../../..
autoconf
automake --cygnus Makefile
cd ../../../../..
SetTitle "Configure newlib 1.15.0 step 2"
mkdir newlib-build
cd newlib-build
../newlib-1.15.0/configure --prefix=$CROSSCOMP --target=$MYOS || exit
SetTitle "Compiling newlib 1.15.0"
make -j2 || exit
make install || exit
cd ..
